package QQ;

public class Str {


	
	// 取字符串中间。例如   
	// mid(  "abc[def]gh" , "[" , "]" )  将返回  def
	
	public static String mid(String s,String left,String right) {
		int i = s.indexOf(left) + left.length();
		return s.substring(i,s.indexOf(right,i));
	}

}
